package com.huohuzhihui.system.domain;

import com.huohuzhihui.common.annotation.Excel;
import com.huohuzhihui.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文件对象 sys_files
 *
 * @author yepanpan
 * @date 2020-11-20
 */
@Getter
@Setter
public class SysFiles extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增长主键
     */
    private Long id;

    /**
     * 文件名
     */
    @Excel(name = "文件名")
    private String title;

    /**
     * 路径
     */
    @Excel(name = "路径")
    private String path;

    /**
     * MD5值
     */
    @Excel(name = "MD5值")
    private String md5;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("path", getPath())
                .append("md5", getMd5())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .toString();
    }
}
